package org.bluedream.core.module.reports.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.bluedream.core.module.entity.stock.SkuStock;
import org.bluedream.core.module.service.stock.SkuStockService;
import org.bluedream.core.utils.configUtil.GoalConfigUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;


/**
 * 报表 模块
 * @ClassName ReportsController
 * @Description TODO
 * @Author Administrator
 * @Data 2022/7/6 10:35
 * @Version
 */
@Controller
@RequestMapping(value = "${adminPath}/reports")
public class ReportsController {
    @Resource
    private SkuStockService skuStockService;

    /**
     * 物流中心 指定仓库 库存明细数据
     * @param entity
     * @param model
     * @return
     */
    @RequiresPermissions("reports:view")
    @RequestMapping(value = {"/skuStockList" , ""})
    public String skuStockList(SkuStock entity, Model model){
        model.addAttribute("pageSize" , GoalConfigUtil.getValueByKey("sys.page.size"));
        model.addAttribute("skuStock" , entity);
        return "module/stock/skuStockList";
    }
}